<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../common/NavigationLeft.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>固定资产管理系统</title>
</head>
<body>
	<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
	<h2 class="page-header"><a href="userList.action">返回用户列表</a></h2>
		<div class="form-horizontal">
			<div class="form-group form-inline">
				<label  class="col-sm-2 control-label">用户名：</label>
				<span  class="col-sm-4 control-label" style="text-align:left">${userWeb.name} </span>
			</div>
			<div class="form-group form-inline">
				<label  class="col-sm-2 control-label">登录账号：</label>
				<span  class="col-sm-4 control-label" style="text-align:left">${userWeb.loginName} </span>
			</div>
			<div class="form-group form-inline">
				<label  class="col-sm-2 control-label">用户编号：</label>
				<span  class="col-sm-4 control-label" style="text-align:left">${userWeb.code} </span>
			</div>
			<div class="form-group">
				<label  class="col-sm-2 control-label">用户角色：</label>	
				<c:forEach var="item" items="${userWeb.role}">                  
                    <c:if test="${item == 'Admin'}">
                        <span class="col-sm-4 control-label" style="text-align:left">管理员</span>
                    </c:if> 
                    <c:if test="${item == 'User'}">
                        <span class="col-sm-4 control-label" style="text-align:left">普通用户</span>
                    </c:if>               
                </c:forEach>				         
			</div>
			<div class="form-group form-inline">
				<label  class="col-sm-2 control-label">用户状态：</label>
				<c:forEach var="item" items="${userWeb.status}">                  
                    <c:if test="${item == 'Normal'}">
                        <span class="col-sm-4 control-label" style="text-align:left">正常</span>
                    </c:if> 
                    <c:if test="${item == 'Disabled'}">
                        <span class="col-sm-4 control-label" style="text-align:left">禁用</span>
                    </c:if>               
                </c:forEach>				                 
			</div>
			<div class="form-group form-inline">
				<label  class="col-sm-2 control-label">所属部门：</label>
				<span  class="col-sm-4 control-label" style="text-align:left">${userWeb.department} </span>
				<%-- <c:forEach var="item" items="${departmentList}">                 
                    <c:if test="${item.id == user.department}">
                        <span class="col-sm-4 control-label" style="text-align:left"> ${item.name}</span>
                    </c:if>                                        
                </c:forEach> --%> 
			</div>		
			<div class="form-group form-inline">
				<label  class="col-sm-2 control-label">所属公司：</label>				
                    <c:forEach var="item" items="${branchOfficeList}">                  
                        <c:if test="${item.id == user.branchOffice}">
                            <span class="col-sm-4 control-label" style="text-align:left"> ${item.name}</span>
                        </c:if>               
                    </c:forEach>
			</div>				
			<div class="form-group form-inline">
				<label class="col-sm-2 control-label">加入日期：</label>
				<span class="col-sm-4 control-label" style="text-align: left">
					${userWeb.addedTime}
				</span>
			</div>			
			<div class="form-group form-inline">
				<label class="col-sm-2 control-label">最后修改时间：</label>
				<span class="col-sm-4 control-label" style="text-align:left">
					${userWeb.modifyTime}
				</span>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">备注：</label>
				<span class="col-sm-4 control-label" style="text-align:left">${userWeb.remark} </span>				
			</div>	
		</div>
	</div>
</body>
</html>